﻿@model IList<Entidad.Producto>
@{
    ViewBag.Title = "Productos Registrados";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Productos Registrados</h2>
@*<div id="container" class="row-fluid">
    <!-- BEGIN PAGE -->
    <div id="main-content">
        <!-- BEGIN PAGE CONTAINER-->
        <div class="container-fluid">

            <!-- BEGIN PAGE HEADER-->
            <!-- END PAGE HEADER-->*@

<!-- ******CONTENT BODY GOES HERE*******  -->
<div class="widget-body">
    <div>
        @using (Html.BeginForm("Crear", "Producto", FormMethod.Get))
        {
            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <input type="submit" value="Nuevo Producto" class="btn btn-default" />
                </div>
            </div>
        }
    </div>
</div>
<div class="span12">
    <!-- BEGIN BASIC CHART PORTLET-->
    <div class="widget black">
        <div class="widget-title">
            <h4><i class="icon-archive"></i> Productos Registrados</h4>
            <span class="tools">
                <a href="javascript:;" class="icon-chevron-down"></a>
                <a href="javascript:;" class="icon-remove"></a>
            </span>
        </div>
        <div class="widget-body">

            @using (Html.BeginForm())
            {
                <p>
                    Denominación: @Html.TextBox("dominacion")
                    <input id="Filtrar" type="submit" value="Buscar Producto" class="btn btn-default" />
                </p>


                <div id="grid-list">
                    @{ Html.RenderPartial("Listado", Model); }
                </div>

            }
        </div>
    </div>
    <!-- END BASIC CHART PORTLET-->
</div>
<!-- END PAGE CONTENT-->
@*</div>
            <!-- END PAGE CONTAINER-->
        </div>
        <!-- END PAGE -->
    </div>
    <!-- END CONTAINER -->*@


<script type="text/javascript">
    $(document).ready(function () {
        $.get("@Url.Action("ListadoPartial", "Proveedor")", function (data) {
            $('#grid-list').replaceWith(data);
        });
    });
</script>

